<div class="content-auto">
<div class="breadcrumb">
    <span>(<strong>Inventory</strong>=== Printing)</span>
</div>
<?php echo form_open('inventory/totaladd/'.$cat,array('class'=>'form-horizontal form-validate','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <table class="table-form-submit table-total">
    <?php if(!empty($ls)) { ?>
        <tr>
            <td><label for="type_id">Type *</label></td>
            <td>
                <?php echo form_dropdown('type_id', $ls, array(), 'class="form-control type_id" required') ?>
            </td>
        </tr>
    <?php } ?>
         <tr>
            <td><label for="unit">Total *</label></td>
            <td><input type="text" name="total" placeholder="number" class="form-control total" style="width:100px!important" required /></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="hidden" class="title" name="title" value="" />
                <input type="hidden" class="cat_id" name="category_id" value="<?php echo $cat;?>" />
                <?php 
                    echo $form; 
                ?>
            </td>
        </tr>
    </table>
 </fieldset> 
<?php echo form_close();?>
</div>